package com.tinckay.entity.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 泵车监测预警阀值
 * </p>
 *
 * @author Jean
 * @since 2018-11-10
 */
@Data
@TableName("base_pump_warn_level")
@ApiModel(value = "PumpWarnLevel对象", description = "泵车监测预警阀值")
public class PumpWarnLevel extends Model<PumpWarnLevel> {

    private static final long serialVersionUID = -2146526939659177292L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "所属泵车编号不能为空")
    @ApiModelProperty(value = "所属泵车编号")
    private String pumpCode;

    @ApiModelProperty(value = "比例阀电流,比例阀电流，反馈的是百分比设定速度对应比例电流值")
    private Integer proportionalCurrent;

    @ApiModelProperty(value = "油温上限")
    private Integer oilTempMaxLimit;

    @ApiModelProperty(value = "油温下限")
    private Integer oilTempMinLimit;

    @ApiModelProperty(value = "泵送压力上限")
    private Double pumpPressureMaxLimit;

    @ApiModelProperty(value = "搅拌压力上限")
    private Double stirPressureMaxLimit;

    @ApiModelProperty(value = "分配压力上限，")
    private Double allocPressureMaxLimit;

    @ApiModelProperty(value = "分配压力下限")
    private Double allocPressureMinLimit;

    @ApiModelProperty(value = "组合状态A，8搅拌超压（固定为8、其余都不会报警）")
    private Integer groupAStateLimit;

    @ApiModelProperty(value = "组合状态B，2紧急停止、3低液位（0不报警，如果为1出现这2个值时报警）")
    private Integer groupBStateLimit;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建人", hidden = true)
    private String creator;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", hidden = true)
    private LocalDateTime updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
